COMPONENT=SenseToRadioAppC
CFLAGS += -I$(TOSDIR)/lib/printf
CFLAGS += -DNEW_PRINTF_SEMANTICS

BUILD_EXTRA_DEPS = SenseToRadioMsg.class SenseToRadioMsg.py
CLEAN_EXTRA = *.class SenseToRadioMsg.java SenseToRadioMsg.py

SenseToRadioMsg.class: SenseToRadioMsg.java
	javac SenseToRadioMsg.java

SenseToRadioMsg.java:
	mig java -target=null $(CFLAGS) -java-classname=SenseToRadioMsg SenseToRadio.h SenseToRadioMsg -o $@

SenseToRadioMsg.py:
	mig python -target=null $(CFLAGS) -python-classname=SenseToRadioMsg SenseToRadio.h SenseToRadioMsg -o $@

include $(MAKERULES)
